package org.ace.biz.user;

import java.util.List;

import org.ace.model.TeamModel;

public interface ITeamBiz {
	
	 /*获取一个组队*/
	 public TeamModel get(Integer teamId);
	 /*通过角色id 获取所在的队伍*/
	 public TeamModel getByUserId(Integer userId);
	 
	 /* 判断 该角色是否有队伍*/
	 public boolean hasTeam(Integer userId);
	 /*获取玩家所在队伍id*/
	 public Integer getTeamId(Integer userId);
	 
	 /*
	  * @param userId 踢人ID
	  * @param targetId 被踢者id
	  * */
	 public Integer kick(Integer userId ,Integer targetId);
	 
	 /*解散队伍*/
	 public List<Integer> dismiss(Integer userId);
	 
	 /*离开队伍*/
	 public boolean leave(Integer userId);
	 
	 /*进入队伍*/
	 public TeamModel join(Integer userId ,Integer teamId);
	 
	 /*创建队伍*/
	 public TeamModel create(Integer userId);
	 
	 /*移除玩家队伍*/
	 public void userTeamRemove(Integer userId);
	 
	 public void addLast(TeamModel team);
}
